<?php if (!defined('BASEPATH')) die();
class Neighborhood extends Main_Controller {

   	public function index()
	{
	  
	}
	public function view($msg = NULL)
	{
		$data['message'] = $msg;
		$data['title'] = "Grab Grocery - User Profile";
		$data['mode'] = "view";
		if($this->session->userdata('user')->user->default_neighborhood_id){
			$this->load->model('market_model');
			$data['markets']=$this->market_model->getby_neighborhood_id($this->session->userdata('user')->user->default_neighborhood_id);
		}
		$this->load->view('include/header',$data);
		$this->load->view('templates/menubar');
		$this->load->view('neighborhood',$data);
		$this->load->view('include/footer');
	}
	
	

}

/* End of file frontpage.php */
/* Location: ./application/controllers/frontpage.php */
